/*
package com.learning.conf;

import org.apdplat.word.WordSegmenter;
import org.apdplat.word.dictionary.DictionaryFactory;
import org.apdplat.word.dictionary.DictionaryTools;
import org.apdplat.word.tagging.SynonymTagging;
import org.apdplat.word.util.WordConfTools;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

*/
/**
 * @author jukg
 * @date 2023/06/08 15:01
 * @description
 *//*

@Configuration
public class WordWarpper implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        reload();
    }

    public void reload(){
        //读库写文件，词性，关键词，同义词
        WordConfTools.set("dic.path", "classpath:dic.txt,d:/custom_dic");
        //将文件配置写到word分词配置中
        DictionaryFactory.reload();
    }


}
*/
